package com.ely.coupon.distribute.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "coupon")
public class Coupon {
    /**
     * 主键
     */
    @TableId(value = "coupon_id", type = IdType.ASSIGN_ID)
    private Long couponId;

    /**
     * 会员ID
     */
    @TableField(value = "member_id")
    private Long memberId;

    /**
     * 优惠卷活动ID
     */
    @TableField(value = "coupon_activity_id")
    private Long couponActivityId;

    /**
     * 过期时间
     */
    @TableField(value = "expire_date")
    private Date expireDate;

    /**
     * 创建日期
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 1 表示正常  2 表示 失效 3 表示已使用
     */
    @TableField(value = "`status`")
    private Integer status;

    public static final String COL_COUPON_ID = "coupon_id";

    public static final String COL_MEMBER_ID = "member_id";

    public static final String COL_COUPON_ACTIVITY_ID = "coupon_activity_id";

    public static final String COL_EXPIRE_DATE = "expire_date";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_STATUS = "status";
}